package com.mmall.service;

import com.mmall.common.ServerResponse;
import com.mmall.pojo.User;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpSession;


public interface UserService {

    public ServerResponse login(String username, String password,HttpSession session);

    public ServerResponse register(User user);

    public ServerResponse checkusername(String username);

    public ServerResponse  selectQuestionByusername(String username);

    public ServerResponse  selectAnswerByusernameAndQuestion(String username, String question, String answer);

    public ServerResponse   forgetResetPassword(String username, String password);

    public ServerResponse updateUserInfo(User user);

    public ServerResponse  getUserInfo(Integer id);

    public ServerResponse checkAdminRole(User user);

    public ServerResponse  deleteUser(Integer id);


}